package com.me.learnspring.controller.request;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.me.learnspring.utils.MoneyDeserializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.joda.money.Money;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class NewDrinkRequest {
	@NotEmpty
	private String name;
	@NotNull
	private Long categoryId;
	@JsonDeserialize(using = MoneyDeserializer.class)
	private Money price;
}
